﻿<div class="queues-view full-height">
    <div class="screen" data-bind="visible: screen() == 'messages'">
        <div class="grid-container" data-bind="with: queueMessagesListView">
            <header class="grid-header">
                <h2 data-bind="text: queue()"></h2>
                <div class="row">
                    <div class="large-6 columns">
                        <a href="javascript:void(0)" title="Remove all messages" class="button secondary" data-bind="modalOpen: 'deleteAllMessages', click: deleteAllDetails.init">Clear All Messages</a>
                        <a href="javascript:void(0)" title="Reload" class="button secondary" data-bind="click: reload">Reload</a>
                        <a href="javascript:void(0)" title="Push new message" class="button secondary" data-bind="modalOpen: 'createMessage', click: function() {details.reset(decodeBase64()) }">New message</a>
                    </div>
                    <div class="large-6 columns">
                        <label for="decodeBase64">Decode Base64: </label>
                        <input id="decodeBase64" type="checkbox" data-bind="checked: decodeBase64" />
                    </div>
                </div>
            </header>
            <div class="data-grid">
                @Html.Partial("Queues/QueueMessagesList")
            </div>
        </div>
    </div>
    <div class="screen" data-bind="visible: screen() == 'queues'">
        <div class="grid-container" data-bind="with: queuesListView">
            <header class="grid-header">
                <h2>Queues</h2>
                @Html.Partial("Queues/QueuesFilter")
            </header>
            <div class="data-grid">
                @Html.Partial("Queues/QueuesList")
            </div>
            <div class="controls">
            </div>
        </div>
    </div>
</div>
